package cn.qiyu5522.tk_ems.entity.dto;

import cn.qiyu5522.tk_ems.entity.CompanyEmployRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.entity.dto
 * @ClassName: CompanyEmployRecordDTO
 * @Author: [Toneky]
 * @Date: 2023/3/5 15:59
 * @Version: V1.0
 **/
@Data
@ApiModel("公司录用状态DTO")
public class CompanyEmployRecordDTO {

    @NotNull(message = "编号主键不能为空",groups = {CompanyEmployRecord.Update.class})
    private Integer id;

    @ApiModelProperty(value = "简历ID")
    @NotNull(message = "简历ID不能为空",groups = {CompanyEmployRecord.Update.class,CompanyEmployRecord.Insert.class})
    private Integer resumeId;

    @ApiModelProperty(value = "岗位编号")
    @NotNull(message = "岗位编号不能为空",groups = {CompanyEmployRecord.Update.class,CompanyEmployRecord.Insert.class})
    private Integer jobId;

    @ApiModelProperty(value = "学生ID")
    @NotNull(message = "学生ID不能为空",groups = {CompanyEmployRecord.Update.class,CompanyEmployRecord.Insert.class})
    private Long studentId;

    @ApiModelProperty(value = "公司ID")
    @NotNull(message = "公司ID不能为空",groups = {CompanyEmployRecord.Update.class,CompanyEmployRecord.Insert.class})
    private Long companyId;

    @ApiModelProperty(value = "录用时间")
    private LocalDateTime employTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private LocalDateTime createTimeStart;
    private LocalDateTime createTimeEnd;
    private LocalDateTime employTimeStart;
    private LocalDateTime employTimeEnd;

    @ApiModelProperty(value = "录用薪资")
    private String salary;

    @ApiModelProperty(value = "录用状态(0未录用，1录用）")
    @NotNull(message = "录用状态不能为空",groups = {CompanyEmployRecord.Update.class})
    private Integer state;


}
